package com.longlong.yfbank.controller;

import com.longlong.yfbank.entity.Tradetype;
import com.longlong.yfbank.service.TradetypeService;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author longlong
 * @date 2024-01-06 16:46
 * description
 */
@RestController
@CrossOrigin
@RequestMapping("/tradetype")
public class TradeTypeConteoller {
    @Resource
    private TradetypeService tradetypeService;

    @GetMapping
    public List<Tradetype> getAll(){
        return  tradetypeService.list();
    }
}
